﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Web;

namespace ChatServer.DataBaseModel
{
    public class UserLog
    {
        [Key]
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int CountId { get; set; }
        public Guid UserId { get; set; }
        public DateTime LastLogged { get; set; }
        public Browser BrowserType { get; set; }
        public string LastLogedIp { get; set; }

        public virtual Users User { get; set; }
    }

    public enum Browser
    {
        IE,
        Firefox,
        Chrome,
        Netscape,
        Saffari
    }
}